<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>信息管理系统</title>
<link rel="stylesheet" href="/css/admin.css" type="text/css"/>
<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>
</head>
<body leftmargin="2" topmargin="2">
<s:url action="userInfo?action=add" id="userinfoaddurl" />
<fieldset><legend>用户管理：[<a href="${userinfoaddurl}">添加用户</a>]</legend>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <COLGROUP>
  <COL width="*" />
  <COL width="100" />
  <tr style="font-weight: bold;" align="center" class="tdbg2"> 
    <td>用户名</td>
    <td>管理操作</td>
  </tr>
<s:iterator id="ul" value="%{userList}">
<s:url action="userInfo?action=del&id=${ul.id}" id="userdelurl" />
    <tr class="tdbg3" align="center"> 
      <td><s:property value="#ul.username"/></td>
      <td><a href="${userdelurl}" onclick="{if(confirm('执行此删除操作后该信息不能恢复，确定删除吗？')){return true;}return false;}">删除</a></td>
    </tr>
</s:iterator>
</table>
</fieldset>
</body>
</html>
